package cn.tedu.commpro.controller.product.category.service;

import cn.tedu.commpro.controller.product.category.mapper.ProductCategoryMapper;
import org.ecshop.common.domain.productcenter.ProductCategory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductCategoryService {

	private static final Logger logger = LoggerFactory.getLogger(ProductCategoryService.class);

	@Resource
	private ProductCategoryMapper productCategoryMapper;
	/**
	 * 获取所有的商品分类
	 * @return List<ProductCategory>
	 */
	public List<ProductCategory> selectProductCategoryByPcPId(Long pcPid) {

		return productCategoryMapper.selectProductCategoryByPcPId(pcPid);
	}
}
